package com.xxjqr.rbac.mapper;

import com.xxjqr.rbac.anno.PageQuery;
import com.xxjqr.rbac.auth.JwtUser;
import com.xxjqr.rbac.entity.pojo.TbUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxjqr.rbac.entity.vo.UserVo;
import com.xxjqr.rbac.enums.StatusEnum;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author 丁昌江
 * @since 2021-02-26
 */
public interface TbUserMapper extends BaseMapper<TbUser> {
    @PageQuery
    List<UserVo> getUsers(String name, String mobile, StatusEnum status, String beginTime, String endTime, List<Long> deptIds);

    JwtUser getUserAndRole(@Param("username") String username);
}
